<?

JCAT_Package::ImportClass('JCAT_ViewGtk',JCAT::PACKAGE_MVCGTK) ;

class UICtrlTextDlg extends JCAT_ViewGtk implements JCAT_IViewForm
{
	/**
	 * what's this
	 * 
	 * @access	public
	 * @param	$aParent=null	JCAT_ViewGtk		拥有此视图的对象
	 * @param	$aUI=null		JCAT_UIGtkGlade		模版引擎
	 * @return	array
	 */
	public function UICtrlTextDlg( JCAT_IViewContainer $aParent, JCAT_UIGtkGlade $aUI=null )
	{
		$this->JCAT_ViewGtk('UICtrlTextDlg','UICtrlText','UICtrlText',$aParent,$aUI) ;

		$aUICtrl = new JCAT_UIGtkCtrlCheckbox('TextLengthByChar',JCAT_Language::Sentence('以文本计算字符长度'),'ChkTextLengthByChar') ;
		$aUICtrl->SetActiveValue(1) ;
		$this->AddUICtrl($aUICtrl) ;

		// 设置数据交换
		$aDataExchanger = $this->GetDataExchanger() ;
		$aDataExchanger->LinkUICtrlToDocumentData('TextLengthByChar','TextLengthByChar') ;
	}
	
	
}

?>